package com.usian.user.feign;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {
    //添加自媒体用户
    @PostMapping("/api/v1/user/save")
    public ResponseResult save(@RequestBody WmUser wmUser);

    //根据名称查找自媒体用户
    @PostMapping("/api/v1/user/findByName{name}")
    public WmUser findByName(@PathVariable String name);

    @PostMapping("/api/v1/user/updateAuthor")
    ResponseResult updateAuthor(WmUser wmUser);


}
